package user;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "id",
    "status"
})
@XmlRootElement
public class User {

	@XmlAttribute
	private String id;
	@XmlAttribute
	private AuthLevel status;
	
	public User(String id, AuthLevel status) {
		this.id = id;
		this.status = status;
	}

	public User() {
	}
	
	public Boolean equals(User u) {
		return this.id.equalsIgnoreCase(u.getId());
	}
	
	public String getId() {
		return id;
	}

	public AuthLevel getStatus() {
		return status;
	}
	
}
